HTML5 eLearning Kit For Dummies by Boumphrey Frank
Author:Boumphrey, Frank
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2012-06-27T16:00:00+00:00
Figure 4-12
Sizing a background image
If you want to specify a size for your background image, you can do so with the background-size property. To set the values, you have the following options:
Use one or two length or percentage values. If you use one value, the second value is assumed to be the keyword value, auto. If you use two values, the first sets the width and the second sets the height.
The keyword auto can be used with a length or percentage value or on its own. auto sets the image size to its intrinsic value. So an image thatâs sized to 300 pixels wide in a graphics program will appear 300 pixels wide in the browser.
Instead of a length or percentage, you can use the keywords cover or contain. The cover keyword sizes the image as small as possible while still completely covering the background area and maintaining the imageâs aspect ratio. The contain keyword makes the image as large as possible within the background area while maintaining the imageâs aspect ratio.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9916)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9779)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8300)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7781)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Windows APT Warfare by Sheng-Hao Ma(6849)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6584)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6454)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6417)
Kotlin in Action by Dmitry Jemerov(5065)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4317)
Functional Programming in JavaScript by Mantyla Dan(4038)
Solidity Programming Essentials by Ritesh Modi(4009)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3801)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3745)
The Ultimate iOS Interview Playbook by Avi Tsadok(3719)
